﻿@model IEnumerable<Vcare.Models.Rates>

<style type="text/css">
#ratessection a
{
    font-family: 'Traditional Arabic'; 
    font-size: medium; 
    color: #800000; 
    font-style: italic
}

td
{
    font-family: Trebuchet MS;
    font-size: 12px;
}
</style>

<legend style="width:80px;">Fees</legend>
<div id="ratessection">
<div class="spacer"></div>
<p>
    @Html.ActionLink("Create New", "Create", new { callCentreID = @ViewBag.CallCentreID })
</p>
<div class="spacer"></div>
<table class="listtable contactstable" cellspacing="0" cellpadding="0">
    <tr>
        <th>
            Call Centre
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Description)
        </th>
        <th>
            Fee
        </th>
        <th>
            Annual
        </th>
        <th>
            Quarterly
        </th>
        <th>
            Monthly
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.CallCentre.CallCentre)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Fee)
        </td>
        <td>
        @if (item.Annual??false==true)
        {
            <label style="font-family: Wingdings; font-size: large; color: #800000">ü</label>
        }
        </td>
        <td>
        @if (item.Quarterly??false==true)
        {
            <label style="font-family: Wingdings; font-size: large; color: #800000">ü</label>
        }
        </td>
        <td>
        @if (item.Monthly??false==true)
        {
            <label style="font-family: Wingdings; font-size: large; color: #800000">ü</label>
        }
        </td>

        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.RatesID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.RatesID })
        </td>
    </tr>
}

</table>
</div>